tests: Make GSETTINGS_SCHEMA_DIR point to the compiled schemas in the build dir
authorChristoph Reiter <creiter@src.gnome.org>
Sat, 17 Feb 2018 08:48:12 +0000 (09:48 +0100)
committerChristoph Reiter <creiter@src.gnome.org>
Sat, 17 Feb 2018 08:48:12 +0000 (09:48 +0100)
commit1253e7bfcbc80f88328a923568be63f831941a39
tree7afc4148c4844a0c0346238b4bf22137a759e172
parent1b8a768279e1cf093b16c6c71965aa5cb1c80682
tests: Make GSETTINGS_SCHEMA_DIR point to the compiled schemas in the build dir

With autotools the schemas were compiled into each test suite directory
and the tests set GSETTINGS_SCHEMA_DIR to the test build directory.

With meson's gnome.compile_schemas() we can not define a target directory
so just make sure it is built in the gtk directory and set GSETTINGS_SCHEMA_DIR
to the gtk build directory when running the tests.

This makes the gtk+:gtk suite pass when no gtk is installed on the system.
gtk/meson.build
testsuite/a11y/meson.build
testsuite/gtk/defaultvalue.c
testsuite/gtk/meson.build
testsuite/gtk/notify.c
testsuite/gtk/object.c
testsuite/gtk/objects-finalize.c
testsuite/gtk/templates.c
testsuite/reftests/gtk-reftest.c
testsuite/reftests/meson.build